var now = new Date()
setInterval(function(){
    now = new Date();
    return now
  },1000)
function getYear(){
    var month = (now.getMonth()+Number(1)) <10?'0'+(now.getMonth()+Number(1)):(now.getMonth()+Number(1))
    return now.getFullYear()+'-'+month+'-'+now.getDate()
}
function getWeekDate() {
    var day = now.getDay();
    var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
    var week = weeks[day];
    return week;
 }
 function getHours(){
    var ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
    var getMinutes = now.getMinutes() < 10 ? '0' + now.getMinutes():new Date().getMinutes()
    return now.getHours()+':'+getMinutes+':'+ss
 }